import type { UserInfo } from '@/entity/user.entity'

export const useLockStore = defineStore('lock', {
  state: () => ({
    userInfoModifyVisible: false,
    userInfoM: {} as UserInfo
  }),

  actions: {
    async showUserInfoModifyDialog() {
      const res = await axios({
        method: 'get',
        url: '/userInfo/findById'
      })
      this.userInfoM = res.data
      nextTick(() => {
        this.userInfoModifyVisible = true
      })
    }
  }
})
